package jou.cs.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@Slf4j
@RestControllerAdvice
public class exceptions {
    public static void fun() {}

    @ExceptionHandler(RuntimeException.class)
    public Object e1(Exception e) {

        return e.getMessage();
    }
}
